package com.data.center.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.data.center.entity.AdminDivision;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminDivisionMapper extends BaseMapper<AdminDivision> {
    int insert(AdminDivision adminDivision);
    void update(AdminDivision adminDivision);
    void delete(String id);
    AdminDivision getById(String id);
    AdminDivision getByCode(String code);
    List<AdminDivision> listAllByStatus(int status);
    List<AdminDivision> searchByName(String name);
    AdminDivision getByName(String name);

}
